package com.xie.service;

import com.xie.dao.SclassMapper;
import com.xie.pojo.Sclass;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SclassServiceImpl implements SclassService {

    private SclassMapper sclassMapper;
    public void setSclassMapper(SclassMapper sclassMapper) {
        this.sclassMapper = sclassMapper;
    }

    public int addSclass(Sclass sclass) {
        return sclassMapper.addSclass(sclass);
    }

    public List<Sclass> queryAllSclass() {
        return sclassMapper.queryAllSclass();
    }

    public int deleteSclass(int classid) {
        return sclassMapper.deleteSclass(classid);
    }

    public int updateSclass(Sclass sclass) {
        return sclassMapper.updateSclass(sclass);
    }

    public Sclass querySclass(int classid) {
        return sclassMapper.querySclass(classid);
    }
}
